class ExitMethod
	{
	public void tryExitMethod()
		{
		try
			{
			System.out.println("Entered the try Block");
			System.exit(0);
			}
		finally
			{
			System.out.println("finally Block Executed");
			}
		}
	public static void main(String args[])
		{
		ExitMethod em = new ExitMethod();
		em.tryExitMethod();
		}
	}